<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>forEach遍历数组</title>
	</head>
	<body>
		<script type="text/javascript">
			var arr = [1,2,3];
			arr.forEach((value,index) => {
				console.log(value)
			})
			arr.forEach(function(value) {
				console.log(value)
			})
		</script>
	</body>
</html>
